import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../views/main/Main.vue'

import File from '../views/fileService/File'
import ModelShow from '../views/modelShow/Index'
 import Villa from '../views/villa/Index'
import threeDemo from '../views/threeDemo/Three'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/Main',
  },
  {
    path: '/Main',
    name: 'Main',
    component: Main,
    children: [
      {
        path: '/Main',
        redirect: '/Main/file',
      },
      {
        path: 'modelShow',
        name: 'ModelShow',
        component: ModelShow,
      },
      {
        path: 'file',
        name: 'File',
        component: File,
      },
      // {
      //   path: 'villa',
      //   name: 'Villa',
      //   component: Villa,
      // },
      {
        path: 'threeDemo',
        name: 'threeDemo',
        component: threeDemo,
      }
    ]
  },
]



const router = new VueRouter({
  routes,
})

export default router
